shrub/gen164/6/ut_sift.c

34 lines
653 B
C
Raw Normal View History

2014-01-05 06:05:33 +04:00
/* j/6/sift.c
**
** This file is in the public domain.
*/
#include "all.h"
#include "../pit.h"
/* boilerplate
*/
2014-09-04 01:33:18 +04:00
u2_noun
2014-09-03 09:46:55 +04:00
u2_cwfu_sift(
2014-09-04 01:33:18 +04:00
u2_noun cor)
2014-01-05 06:05:33 +04:00
{
u2_noun sut, ref, van;
2014-08-21 01:18:34 +04:00
if ( (u2_no == u2_cr_mean(cor, u2_cv_sam, &ref,
u2_cv_con, &van,
2014-01-05 06:05:33 +04:00
0)) ||
2014-08-21 01:18:34 +04:00
(u2_none == (sut = u2_cr_at(u2_cv_sam, van))) )
2014-01-05 06:05:33 +04:00
{
2014-08-21 01:18:34 +04:00
return u2_cm_bail(c3__fail);
2014-01-05 06:05:33 +04:00
} else {
2014-09-03 07:36:29 +04:00
return u2_cqfu_sift(van, sut, ref);
2014-01-05 06:05:33 +04:00
}
}
2014-09-04 01:33:18 +04:00
u2_noun
u2_cqfu_sift(u2_noun van,
u2_noun sut,
u2_noun ref)
2014-01-05 06:05:33 +04:00
{
2014-01-05 07:18:06 +04:00
return u2k(ref);
2014-01-05 06:05:33 +04:00
}