diff --git a/include/mcl/bn.h b/include/mcl/bn.h index 20212da..4221989 100644 --- a/include/mcl/bn.h +++ b/include/mcl/bn.h @@ -75,30 +75,30 @@ typedef struct mclBnFp2 mclBnFp2; #else +typedef struct { + uint64_t d[MCLBN_FP_UNIT_SIZE]; +} mclBnFp; + +typedef struct { + mclBnFp d[2]; +} mclBnFp2; + typedef struct { uint64_t d[MCLBN_FR_UNIT_SIZE]; } mclBnFr; typedef struct { - uint64_t d[MCLBN_FP_UNIT_SIZE * 3]; + mclBnFp x, y, z; } mclBnG1; typedef struct { - uint64_t d[MCLBN_FP_UNIT_SIZE * 2 * 3]; + mclBnFp2 x, y, z; } mclBnG2; typedef struct { - uint64_t d[MCLBN_FP_UNIT_SIZE * 12]; + mclBnFp d[12]; } mclBnGT; -typedef struct { - uint64_t d[MCLBN_FP_UNIT_SIZE]; -} mclBnFp; - -typedef struct { - mclBnFp d[2]; -} mclBnFp2; - #endif #include