Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern bcdtobin and bintobcd are now inlines in <de...
details: https://anonhg.NetBSD.org/src/rev/f93a09bd8537
branches: trunk
changeset: 333881:f93a09bd8537
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 20 16:25:16 2014 +0000
description:
bcdtobin and bintobcd are now inlines in <dev/clock_subr.h>
diffstat:
sys/lib/libkern/Makefile.libkern | 4 ++--
sys/lib/libkern/bcd.c | 25 -------------------------
sys/lib/libkern/libkern.h | 6 +-----
3 files changed, 3 insertions(+), 32 deletions(-)
diffs (67 lines):
diff -r fdee46e7a50d -r f93a09bd8537 sys/lib/libkern/Makefile.libkern
--- a/sys/lib/libkern/Makefile.libkern Thu Nov 20 16:18:29 2014 +0000
+++ b/sys/lib/libkern/Makefile.libkern Thu Nov 20 16:25:16 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.libkern,v 1.35 2014/08/10 16:44:36 tls Exp $
+# $NetBSD: Makefile.libkern,v 1.36 2014/11/20 16:25:16 christos Exp $
#
# Variable definitions for libkern.
@@ -54,7 +54,7 @@
SRCS+= bswap64.c
.endif
SRCS+= md4c.c md5c.c rmd160.c sha1.c sha2.c murmurhash.c
-SRCS+= pmatch.c bcd.c mcount.c mertwist.c crc32.c
+SRCS+= pmatch.c mcount.c mertwist.c crc32.c
SRCS+= ppath_kmem_alloc.c
diff -r fdee46e7a50d -r f93a09bd8537 sys/lib/libkern/bcd.c
--- a/sys/lib/libkern/bcd.c Thu Nov 20 16:18:29 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-/* $NetBSD: bcd.c,v 1.1 2006/03/11 15:40:07 kleink Exp $ */
-
-/*
- * Convert a single byte between (unsigned) packed bcd and binary.
- * Public domain.
- */
-
-#include <sys/cdefs.h>
-__KERNEL_RCSID(0,"$NetBSD: bcd.c,v 1.1 2006/03/11 15:40:07 kleink Exp $");
-
-#include <lib/libkern/libkern.h>
-
-unsigned int
-bcdtobin(unsigned int bcd)
-{
-
- return (((bcd >> 4) & 0x0f) * 10 + (bcd & 0x0f));
-}
-
-unsigned int
-bintobcd(unsigned int bin)
-{
-
- return ((((bin / 10) << 4) & 0xf0) | (bin % 10));
-}
diff -r fdee46e7a50d -r f93a09bd8537 sys/lib/libkern/libkern.h
--- a/sys/lib/libkern/libkern.h Thu Nov 20 16:18:29 2014 +0000
+++ b/sys/lib/libkern/libkern.h Thu Nov 20 16:25:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libkern.h,v 1.115 2014/08/10 16:44:36 tls Exp $ */
+/* $NetBSD: libkern.h,v 1.116 2014/11/20 16:25:16 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -367,10 +367,6 @@
void kern_assert(const char *, ...)
__attribute__((__format__(__printf__, 1, 2)));
-unsigned int
- bcdtobin(unsigned int);
-unsigned int
- bintobcd(unsigned int);
u_int32_t
inet_addr(const char *);
struct in_addr;
Home |
Main Index |
Thread Index |
Old Index