#include <stdint.h>
#include <string.h>
#include <endian.h>

void int8_store_bigendian(unsigned char *s,int8_t x)
{
  memcpy(s,&x,sizeof x);
}