kopia lustrzana https://github.com/Hamlib/Hamlib
removed comment about switch optimizatons. the compiler will generate the
assembly code in a different order which is usually based on the case value. other compiler optimizations might also affect it, so it's useless to optimize the order. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2626 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.9
rodzic
7809fa2d20
commit
78197e7d4d
|
@ -3,7 +3,7 @@
|
||||||
* Copyright (c) 2000-2009 by Stephane Fillod
|
* Copyright (c) 2000-2009 by Stephane Fillod
|
||||||
* Copyright (C) 2009 Alessandro Zummo <a.zummo@towertech.it>
|
* Copyright (C) 2009 Alessandro Zummo <a.zummo@towertech.it>
|
||||||
*
|
*
|
||||||
* $Id: kenwood.c,v 1.113 2009-02-06 14:15:12 azummo Exp $
|
* $Id: kenwood.c,v 1.114 2009-02-09 20:37:48 azummo Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -1097,9 +1097,6 @@ int kenwood_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
||||||
{
|
{
|
||||||
char buf[6];
|
char buf[6];
|
||||||
|
|
||||||
/* Optimize:
|
|
||||||
* sort the switch cases with the most frequent first
|
|
||||||
*/
|
|
||||||
switch (func) {
|
switch (func) {
|
||||||
case RIG_FUNC_NB:
|
case RIG_FUNC_NB:
|
||||||
sprintf(buf, "NB%c", (status == 0) ? '0' : '1');
|
sprintf(buf, "NB%c", (status == 0) ? '0' : '1');
|
||||||
|
|
Ładowanie…
Reference in New Issue