Lines Matching +full:carry +full:- +full:less
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * This file contains assembly-language implementations
4 * of IP-style 1's complement checksum routines.
6 * Copyright (C) 1995-1996 Gary Thomas ([email protected])
19 * and adds in "sum" (32-bit).
24 addic r0,r5,0 /* clear carry */
26 srdi. r6,r4,3 /* less than 8 bytes? */
35 rldicl. r6,r3,64-1,64-2 /* r6 = (r3 >> 1) & 0x3 */
62 stdu r1,-STACKFRAMESIZE(r1)
175 addze r0,r0 /* add in final carry */
205 * and adds in 0xffffffff (32-bit), while copying the block to dst.
211 li r6,-1
212 addic r0,r6,0 /* clear carry */
214 srdi. r6,r5,3 /* less than 8 bytes? */
226 rldicl. r6,r3,64-1,64-2 /* r6 = (r3 >> 1) & 0x3 */
255 stdu r1,-STACKFRAMESIZE(r1)
397 addze r0,r0 /* add in final carry */