Verified Commit 0c1cf945 authored by Sofia Celi's avatar Sofia Celi

Changing the arch

parent d1e26c36
......@@ -15,10 +15,6 @@ ifeq ($(ARCH),arch64)
ARCH_DEF = arch_ref64
endif
ifeq ($(ARCH),arm)
ARCH_DEF := arch_arm_32
endif
# Subdirectories for objects etc.
# Many of them are mapped to build/obj right now, but could be split later.
# The non-build/obj directories are the public interface.
......
......@@ -10,7 +10,6 @@
* @brief Goldilocks high-level functions.
*/
#define _XOPEN_SOURCE 600 /* for posix_memalign */
#include <stdio.h>
#include "word.h"
#include "field.h"
......@@ -140,15 +139,6 @@ void API_NS(point_encode)( unsigned char ser[SER_BYTES], const point_p p ) {
gf_serialize(ser,s);
}
#define FOR_LIMB(i,op) { unsigned int i=0; for (i=0; i<SER_BYTES; i++) { op; }}
static void print_lol(const unsigned char ser[SER_BYTES]){
printf("\n");
for (unsigned int i = 0; i < SER_BYTES; i++) {
printf("0x%02x, \n", ser[i]);
}
printf("\n");
}
goldilocks_error_t API_NS(point_decode) (
point_p p,
const unsigned char ser[SER_BYTES],
......@@ -157,8 +147,6 @@ goldilocks_error_t API_NS(point_decode) (
gf s, s2, num, tmp;
gf_s *tmp2=s2, *ynum=p->z, *isr=p->x, *den=p->t;
print_lol(ser);
mask_t succ = gf_deserialize(s, ser, 0);
succ &= bool_to_mask(allow_identity) | ~gf_eq(s, ZERO);
succ &= ~gf_lobit(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment