Cortex-M_Implementation_KEM/Cortex-M0/saber-ref-mem/src/encode.c
void extract(uint16_t a, uint16_t scale_data, uint16_t *K2)
{
    uint16_t temp;

    temp = a - (scale_data<<(P_1-SCALE_SIZE)) + H2;	

    *K2 = floor_special(temp);

}
// generates binary K2 from a and scale_data
generates binary K2 from a and scale_data
generates binary K2 from a and scale_data
void extract(uint16_t a, uint16_t scale_data, uint16_t *K2)
{
    uint16_t temp;
    temp = a - (scale_data<<(P_1-SCALE_SIZE)) + H2;	
    *K2 = floor_special(temp);
}
void extract ( uint16_t a , uint16_t scale_data , uint16_t * K2 ) { uint16_t temp ; temp = a - ( scale_data << ( P_1 - SCALE_SIZE ) ) + H2 ; * K2 = floor_special ( temp ) ; }
generates binary K2 from a and scale_data
generates binary K2 from a and scale_data